package cn.izeno.wx.models.web

import cn.izeno.wx.models.mp.SyncKeyRes
import com.alibaba.fastjson.JSONArray
import com.alibaba.fastjson.JSONObject
import com.alibaba.fastjson.annotation.JSONField

class SyncRes {
  @JSONField(name = "BaseResponse")
  lateinit var base: BaseRes

  @JSONField(name = "AddMsgCount")
  var addMsgCount = 0

  @JSONField(name = "AddMsgList")
  lateinit var addMsgList: List<Message>

  @JSONField(name = "ModContactCount")
  var modContactCount = 0

  @JSONField(name = "ModContactList")
  lateinit var modContactList: List<Member>

  @JSONField(name = "DelContactCount")
  var delContactCount = 0

  @JSONField(name = "DelContactList")
  lateinit var delContactList: JSONArray

  @JSONField(name = "ModChatRoomMemberCount")
  var modChatRoomMemberCount = 0


  @JSONField(name = "ModChatRoomMemberList")
  lateinit var modChatRoomMemberList: JSONArray

  @JSONField(name = "Profile")
  lateinit var profile: JSONObject
  @JSONField(name = "SKey")
  lateinit var skey: String

  @JSONField(name = "")
  var continueFlag = 0

  @JSONField(name = "SyncCheckKey")
  lateinit var syncCheckKey: SyncKeyRes

  /**
   * 和 [syncCheckKey] 一毛一样，估计是做的版本兼容, 废了的数据
   */
  @JSONField(name = "SyncKey")
  lateinit var syncKey: SyncKeyRes
}